﻿using System.ServiceModel;
using System.ServiceModel.Channels;
using WCF.Practice.CustomerHost.Service;

namespace WCF.Practice.CustomerHost.Client
{
    public class UserServiceClient:ClientBase<IUserService>,IUserService
    {
        public UserServiceClient()
        {
            
        }

        public UserServiceClient(string endpointName) : base(endpointName)
        {
            
        }

        public UserServiceClient(Binding binding,EndpointAddress address):base(binding,address)
        {
            
        }

        public string GetName(string originalName)
        {
            return Channel.GetName(originalName);
        }

        public User GetUser()
        {
            return Channel.GetUser();
        }
    }
}